package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.vo.loan.CreditVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="sysCredit", configuration = FeignConfig.class,contextId = "CreditFeignService",url = Constant.sys+":7001")
public interface CreditFeignService {

    /**
     * @Description: TODO 根据身份证号查询是否有征信数据
     * @param cardId 身份证号
     * @return: com.bdzl.pub.entity.loan.CreditDO
     * @Author: Ming
     * @Date: 2021/5/18 10:35
     */
    @PostMapping("/bdzl/credit/getCreditByCardId")
    CreditVO getCreditByCardId(@RequestParam("cardId") String cardId);
}
